import itertools
mylist=list(itertools.combinations(['A','B','C','D'],2))
print(mylist)
print(len(mylist))
#['A','B','C','D'],3) 4个取3个，无序
#M!/N!(M-N)!